/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kmcsoft.goldshop.productgold.service.impl;

import com.kmcsoft.goldshop.model.master.ProductGold;
import com.kmcsoft.goldshop.productgold.service.ProductGoldService;
import com.kmcsoft.master.defaultservice.DefaultGenericService;

/**
 *
 * @author kmcsoft02
 */
public class JdoProductGoldService extends DefaultGenericService implements ProductGoldService {

    public ProductGold getProductGoldById(long id) {
        getPersistenceManager().getFetchPlan().addGroup("detach_ProductGold_Unit");
        getPersistenceManager().getFetchPlan().setMaxFetchDepth(-1);
        return getJdoTemplate().detachCopy(getJdoTemplate().getObjectById(ProductGold.class, id));

    }
}
